package com.neuedu.corejava.ch6.homework;

public class Point {
	int x;
	int y;
	
	public Point() {}
	
	public Point(int x0,int y0){
		this.x = x0;
		this.y = y0;
	}
	
	public void movePoint(int dx, int dy){
		System.out.printf("移动前点的坐标为( x : %d, y %d)\n", this.x, this.y);
		System.out.printf("移动量( x : %d, y %d)\n", dx , dy);
		this.x += dx;
		this.y += dy;
		System.out.printf("移动后点的坐标为( x : %d, y %d)\n", this.x, this.y);
	}

}
